<?php
class Rulemanager_Data_Updaterule implements Rulemanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "UPDATE company_rules SET rule_name='".$variables['post']['rule_name']."', rule_description='".$variables['post']['rule_description']."' WHERE rule_name='".$variables['post']['old_rule_name']."';";
        //echo $variables['query'];
        //die();
        return $this->core_controller_dataoperation->main($variables);
    }
}
